package com.aoxin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

	@RequestMapping(value = "/slf/{page}")
	public String index(@PathVariable("page") String page) {

		return "html/" + page;

	}

	@RequestMapping(value = "/slf/{page}/{subpage}")
	public String index(@PathVariable("page") String page, @PathVariable("subpage") String subpage) {

		return "html/" + page + "/" + subpage;
	}

	@RequestMapping("/login")
	public String login() {
		return "login";
	}
}
